ga.core.individual
Interface IIndividualFactory<T extends IIndividual<T>>

Type Parameters:
T - The generic type of individuals.
All Known Implementing Classes:
TemplateIndividualFactory

public interface IIndividualFactory<T extends IIndividual<T>>

Interface for a individual factory. Genetic algorithms need to create new individuals but can not call a specific constructor, since the concrete class of the individual is unknown. The factory creates new individuals.

Since:
11.08.2012
Author:
Stephan Dreyer

Method Summary
 T newIndividual(GAContext context)
          Creates a new individual in the given context.
 

Method Detail

newIndividual

T newIndividual(GAContext context)
Creates a new individual in the given context.

Parameters:
context - The context.
Returns:
The new individual.
Since:
11.08.2012